package com.icecloud.cloud.filestore.action;

import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.icecloud.cloud.filestore.common.RestfulResponseBody;

/**
 * 测试核心用户
 * 
 * @author penghaozhong
 *
 */
@RestController
public class TestController {
		
	/**
	 * 测试action
	 * @param id
	 * @return
	 * @throws Exception
	 */
	@RequestMapping("/test")
	public ResponseEntity<RestfulResponseBody> test() throws Exception {
		RestfulResponseBody body = new RestfulResponseBody();
			body.setReason("test访问成功");
			body.setResultFlag(1);
		return new ResponseEntity<RestfulResponseBody>(body,HttpStatus.OK);
		
	}
}
